package java实验二;
import java.util.Scanner;
public class 程序3 {
	public static void main(String[] args)
	{
		Scanner input =new Scanner(System.in);
		System.out.print("Enter an interger:");
		int number=input.nextInt();
		if(number %2==0&&number%3==0)
		{
			System.out.println(number+"is divisible by 2 and 3.");
			
		}
		if(number %2==0||number%3==0)
		{
			System.out.println(number+"is divisible by 2 or 3.");
			
		}
		if(number %2==0^number%3==0)
		{
			System.out.println(number+"is divisible by 2 or 3,but not both.");
			
		}
		input.close();
	}
}
